\hypertarget{a00045}{}\section{E\+:/knet-\/git/knet/knet/address.h 文件参考}
\label{a00045}\index{E\+:/knet-\/git/knet/knet/address.\+h@{E\+:/knet-\/git/knet/knet/address.\+h}}
{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}address\+\_\+api.\+h\char`\"{}}\\*
\subsection*{函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00056_a44e99fab0348ec54cfee119ddd9ceed6_a44e99fab0348ec54cfee119ddd9ceed6}{kaddress\+\_\+t} $\ast$ \hyperlink{a00045_a1a1e0dffc03ea50995d5db10e17865f5_a1a1e0dffc03ea50995d5db10e17865f5}{knet\+\_\+address\+\_\+create} ()
\begin{DoxyCompactList}\small\item\em 创建一个kaddress\+\_\+t实例 \end{DoxyCompactList}\item 
void \hyperlink{a00045_a6d8753e0c57b30294243ee26881e7650_a6d8753e0c57b30294243ee26881e7650}{knet\+\_\+address\+\_\+destroy} (\hyperlink{a00056_a44e99fab0348ec54cfee119ddd9ceed6_a44e99fab0348ec54cfee119ddd9ceed6}{kaddress\+\_\+t} $\ast$address)
\begin{DoxyCompactList}\small\item\em 销毁一个kaddress\+\_\+t实例 \end{DoxyCompactList}\item 
void \hyperlink{a00045_a929d17892b34acdbdbc1ff8e8d0f9c71_a929d17892b34acdbdbc1ff8e8d0f9c71}{knet\+\_\+address\+\_\+set} (\hyperlink{a00056_a44e99fab0348ec54cfee119ddd9ceed6_a44e99fab0348ec54cfee119ddd9ceed6}{kaddress\+\_\+t} $\ast$address, const char $\ast$ip, int port)
\begin{DoxyCompactList}\small\item\em 设置\+I\+P和端口 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{函数说明}
\hypertarget{a00045_a1a1e0dffc03ea50995d5db10e17865f5_a1a1e0dffc03ea50995d5db10e17865f5}{}\index{address.\+h@{address.\+h}!knet\+\_\+address\+\_\+create@{knet\+\_\+address\+\_\+create}}
\index{knet\+\_\+address\+\_\+create@{knet\+\_\+address\+\_\+create}!address.\+h@{address.\+h}}
\subsubsection[{knet\+\_\+address\+\_\+create}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kaddress\+\_\+t}$\ast$ knet\+\_\+address\+\_\+create (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{a00045_a1a1e0dffc03ea50995d5db10e17865f5_a1a1e0dffc03ea50995d5db10e17865f5}


创建一个kaddress\+\_\+t实例 

\begin{DoxyReturn}{返回}
kaddress\+\_\+t实例 
\end{DoxyReturn}
\hypertarget{a00045_a6d8753e0c57b30294243ee26881e7650_a6d8753e0c57b30294243ee26881e7650}{}\index{address.\+h@{address.\+h}!knet\+\_\+address\+\_\+destroy@{knet\+\_\+address\+\_\+destroy}}
\index{knet\+\_\+address\+\_\+destroy@{knet\+\_\+address\+\_\+destroy}!address.\+h@{address.\+h}}
\subsubsection[{knet\+\_\+address\+\_\+destroy}]{\setlength{\rightskip}{0pt plus 5cm}void knet\+\_\+address\+\_\+destroy (
\begin{DoxyParamCaption}
\item[{{\bf kaddress\+\_\+t} $\ast$}]{address}
\end{DoxyParamCaption}
)}\label{a00045_a6d8753e0c57b30294243ee26881e7650_a6d8753e0c57b30294243ee26881e7650}


销毁一个kaddress\+\_\+t实例 


\begin{DoxyParams}{参数}
{\em address} & kaddress\+\_\+t实例 \\
\hline
\end{DoxyParams}
\hypertarget{a00045_a929d17892b34acdbdbc1ff8e8d0f9c71_a929d17892b34acdbdbc1ff8e8d0f9c71}{}\index{address.\+h@{address.\+h}!knet\+\_\+address\+\_\+set@{knet\+\_\+address\+\_\+set}}
\index{knet\+\_\+address\+\_\+set@{knet\+\_\+address\+\_\+set}!address.\+h@{address.\+h}}
\subsubsection[{knet\+\_\+address\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}void knet\+\_\+address\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf kaddress\+\_\+t} $\ast$}]{address, }
\item[{const char $\ast$}]{ip, }
\item[{int}]{port}
\end{DoxyParamCaption}
)}\label{a00045_a929d17892b34acdbdbc1ff8e8d0f9c71_a929d17892b34acdbdbc1ff8e8d0f9c71}


设置\+I\+P和端口 


\begin{DoxyParams}{参数}
{\em address} & kaddress\+\_\+t实例 \\
\hline
{\em ip} & I\+P \\
\hline
{\em port} & 端口 \\
\hline
\end{DoxyParams}
